package com.googlecode.bbs.client.worker;

import com.googlecode.bbs.client.domain.BBSMessage;
import com.googlecode.bbs.client.manager.BBSManager;

public class PrintWorker implements Runnable{
	
	private BBSManager bbsManager;
	private BBSMessage msg;
	
	public PrintWorker(BBSManager bbsManager,BBSMessage msg){
		this.bbsManager = bbsManager;
		this.msg = msg;
	}
	
	@Override
	public void run() {
		this.bbsManager.printOnScreen(msg.getNick(), msg.getContent());
	}

}
